Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/takserver/src/jvmAndroidMain/kotlin/org/meshtastic/core/takserver/ZipArchiver.kt 0a44b948ec0573dc62ec68c19e46e62d40fcd1a3 (0a44b948) Text, 1.26 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.takserver

Tff7b72import T7ee787java.io.ByteArrayOutputStream
Tff7b72import T7ee787java.util.zip.ZipEntry
Tff7b72import T7ee787java.util.zip.ZipOutputStream

Tff7b72internal Tff7b72actual Tff7b72object T56d364ZipArchiver Tb4b4b4{
Tff7b72actual Tff7b72fun Td2a8ffcreateZipTb4b4b4(Te6edf3entriesTb4b4b4: Te6edf3MapTff7b72<Tffa657StringTb4b4b4, Te6edf3ByteArrayTff7b72>Tb4b4b4)Tb4b4b4: Te6edf3ByteArray Tb4b4b4{
Tff7b72val Te6edf3baos Tff7b72= Te6edf3ByteArrayOutputStreamTb4b4b4(Tb4b4b4)
Te6edf3ZipOutputStreamTb4b4b4(Te6edf3baosTb4b4b4)Tb4b4b4.Te6edf3use Tb4b4b4{ Te6edf3zos Tff7b72-Tff7b72>
Tff7b72for Tb4b4b4(Tb4b4b4(Te6edf3nameTb4b4b4, Te6edf3dataTb4b4b4) Tff7b72in Te6edf3entriesTb4b4b4) Tb4b4b4{
Te6edf3zosTb4b4b4.Te6edf3putNextEntryTb4b4b4(Te6edf3ZipEntryTb4b4b4(Te6edf3nameTb4b4b4)Tb4b4b4)
Te6edf3zosTb4b4b4.Te6edf3writeTb4b4b4(Te6edf3dataTb4b4b4)
Te6edf3zosTb4b4b4.Te6edf3closeEntryTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tff7b72return Te6edf3baosTb4b4b4.Te6edf3toByteArrayTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.05s